/*
 * @Description:
 * @Date: 2024-06-25 21:50:29
 * @LastEditTime: 2024-07-22 08:45:41
 */
import { http } from '@/utils/http'
export interface IFooItem {
  id: string
  name: string
}

/** GET 请求 */
export const getFooAPI = (name: string) => {
  return http.get<IFooItem>('/foo', { name })
}

/** POST 请求 */
export const postFooAPI = (name: string) => {
  return http.post<IFooItem>('/foo', { name }, { name })
}
export const loginApi = (data) => {
  return http({
    url: `/app-api/system/auth/weixin-mini-app-login`,
    method: 'POST',
    data,
  })
}
